package com.maimao.core.exception;

import com.maimao.core.enums.ExceptionEnum;

/**
 * @author MaoLin Wang
 * @date 2021/4/6 1:26 下午
 */
public class MaiMaoGlobalTransactionException extends RuntimeException {
    private ExceptionEnum exceptionEnum;

    public MaiMaoGlobalTransactionException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public MaiMaoGlobalTransactionException() {
    }

    public ExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }
}
